public class l74 {
    public boolean searchMatrix(int[][] matrix, int target) {
        
    }

    public int findRowByFistrColumn(int[][] matrix, int target) {
        int low = 0, high = matrix.length-1;
        while (low <= high) {
            int mid = low + (low + high) / 2;
            if (matrix[mid][0] == target) {
                return Integer.MAX_VALUE;
            }
            if (matrix[mid][0] < target) {
                mid = low;
            } else {
                mid = high;
            }
        }
        return low;
    }
}
